<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录页</title>
</head>
<body>
<c:set var="bp" value="${pageContext.request.contextPath}" scope="application"></c:set>
   <h1>欢迎登录</h1>
<%--
   ${pageContext.request.contextPath}  项目的虚拟路径
--%>
    <form action="${bp}/user/login" method="get">
        <p>用户名：<input type="text"  name="username"></p>
        <p>密码：<input type="password"  name="password"></p>
        <p><input type="submit" value="立即登录"></p>
    </form>

<span id="msg" style="color: red">${info}</span>

</body>
</html>
